package com.example.curd.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.curd.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dakai
 * @since 2021-04-18
 */
public interface UserMapper extends BaseMapper<User> {

  Integer isHaveUser(String UserName);

  IPage<User> selectUser(@Param("page") Page page,
                         @Param("name") String name);
  Integer deleteUser(String id);
}
